package com.design.structural.Bridge.Drawer;

import com.design.structural.Bridge.Drawer.Color.Color;
import com.design.structural.Bridge.Drawer.Color.Red;
import com.design.structural.Bridge.Drawer.Pen.BigPen;
import com.design.structural.Bridge.Drawer.Pen.Pen;
import com.design.structural.Bridge.Drawer.Picture.PicDog;
import com.design.structural.Bridge.Drawer.Picture.Picture;

public class Client
{
    public static void main(String a[])
    {
        Color color;
        Pen pen;
        Picture pic;

        color=new Red();
        pen=new BigPen();
        pic=new PicDog();

        pen.setColor(color);
        pen.setPic(pic);
        pen.draw("鲜花");
    }
}
